import request from '@/utils/request'

// 查询读物资料列表
export function listDuwu(query) {
  return request({
    url: '/ziliao/duwu/list',
    method: 'get',
    params: query
  })
}

// 查询读物资料详细
export function getDuwu(id) {
  return request({
    url: '/ziliao/duwu/' + id,
    method: 'get'
  })
}

// 新增读物资料
export function addDuwu(data) {
  return request({
    url: '/ziliao/duwu',
    method: 'post',
    data: data
  })
}

// 修改读物资料
export function updateDuwu(data) {
  return request({
    url: '/ziliao/duwu',
    method: 'put',
    data: data
  })
}

// 删除读物资料
export function delDuwu(id) {
  return request({
    url: '/ziliao/duwu/' + id,
    method: 'delete'
  })
}
